<div class="modal-header">
	<h4 class="modal-title">{{obj.title}}</h4>
</div>
<div class="modal-body">
	<div class="container-fluid form-horizontal ">
		<div class="form-group">
			<label class="col-xs-3 control-label">经销商</label>
			<div class="col-xs-6">
				<ui-select ng-model="obj.seller_code" theme="bootstrap">
					<ui-select-match placeholder="请选择一个机构">{{$select.selected.NAME}}</ui-select-match>
					<ui-select-choices repeat="item.CODE as item in taarr | filter: $select.search">
						<span ng-bind-html="item.NAME | highlight: $select.search"></span>
					</ui-select-choices>
				</ui-select>
			</div>
			<button class="btn btn-success col-xs-2" type="button" ng-click="createCompany()">添加</button>
		</div>
		<!--<div class="form-group">
			<label class="col-xs-3 control-label">商户</label>
			<div class="col-xs-6">
				<ui-select ng-model="user.code" theme="bootstrap">
					<ui-select-match placeholder="请选择一个商户">{{$select.selected.name}}</ui-select-match>
					<ui-select-choices repeat="item.login_name as item in userArray | filter: $select.search">
						<span ng-bind-html="item.name | highlight: $select.search"></span>
					</ui-select-choices>
				</ui-select>
			</div>
			<button class="btn btn-success col-xs-2" type="button" ng-click="createUser()">添加</button>
		</div>
		<div class="form-group">
			<label class="col-xs-3 control-label">授权加价</label>
			<div class="col-xs-6">
				<input type="number" class="form-control" ng-model="add_price" >
			</div>
		</div>-->


		<ul class="list-group">
			<li class="list-group-item" ng-repeat="seller in sellers" ng-class="{true: 'list-group-item-success', false: 'list-group-item-danger'}[seller.state == 0]">
				{{seller.company_name}}
				<a ng-click="stop(seller.seller_code)" class="btn pull-right" style="color: red; padding:0px;" ng-show="seller.state == 0">
	        	<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
	      	</a>
				<a ng-click="start(seller.seller_code)" class="btn pull-right" style="color: green; padding:0px;" ng-show="seller.state == 1">
	        	<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
	      	</a>
			</li>
		</ul>

	</div>
</div>
<div class="modal-footer">
	<button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>